9.An employee to pay an income tax based on his gross annual income as follows:
Annual gross income Annual tax deduction %
Less than or equal to Rs 10000 0%
10001 to 50000 Rs. 1000 + 10% of income
50001 to 80000 Rs. 5000 + 20% of income
Greater than 80000 Rs. 10000 + 30% of income
Write a program and print the tax payable by a salaried person.

Enter the gross annual income :

The tax have to paid a employee :